<include file="__THEME__/header" />
<script type="text/javascript" src="../Public/Js/Common.js"></script>
<link  href="../Public/group.css" rel="stylesheet" type="text/css"/>
<div class="content_holder">
<div class="content no_bg"><!-- 内容 begin  -->
<include file="../Public/_mainNav" />
  <div class="main no_l"><!-- 画布 begin  -->
    <div class="mainbox">
      <include file="../Public/_isHotList" />   
      <div class="mainbox_appC">
      <div>
        <if condition="$search_key">
          <div class="f14px"><span class="f12px fn right"><a href="{:U('group/Index/find')}#group_category">&gt;&gt; 全部分类</a></span>搜索"<span class="cRed">{$search_key}</span>"群({$group_list['data']|count})</div>          
          
        <elseif condition="$current_cid" />
          <h2 class="f14px lh30" style="line-height:30px"><span class="right fn f12px"><a href="{:U('group/Index/find')}#group_category">&gt;&gt; 全部分类</a></span><strong>{$top_category['title']}</strong></h2>
          
          <div style="width:auto; _width:99%; overflow:hidden">
            <a href="{:U('group/Index/search', array('cid'=>$top_category['id']))}" <php>if ($top_category['id'] == $current_cid) {</php>style="font-weight:bold;color:#000;"<php>}</php>>全部</a>
          	<volist name="son_categorys" id="son">
             <span class="ml10"><a href="{:U('group/Index/search', array('cid'=>$son['id']))}" <php>if ($son['id'] == $current_cid) {</php>style="font-weight:bold;color:#000;"<php>}</php>>{$son['title']}</a></span>
          	</volist>
          </div>
        </if>
        <div class="group_box">
          <div class="searchBox">           
            <form action="{:U('group/Index/search')}" method="POST">
            <div>
            <label class="find_group">找群:</label>
            <input name="k" type="text" value="{$search_key}" class="txt_group"/>
            <input type="submit" class="btn_group" value="" /></div>
            </form>
          </div>
        </div>
        <if condition="$search_key && !$group_list['data']">
        <div class="f14px cGray" style="margin:20px 0">
            <p>你来早了一步，"<span class="cRed">{$search_key}</span>"群还没人创建呢……  现在就<a class="ml5" href="{:U('group/Index/add', array('k'=>$search_key))}" target="_blank"><strong>创建一个</strong></a></p>
        </div>
        </if>
        <ul class="search">
          <volist name="group_list['data']" id="group">
          <li class="lineD_btm">
            <div class="group_pic">
              <a href="{:U('group/Group/index', array('gid'=>$group['id']))}">
                <img src="__ROOT__/thumb.php?w=60&h=60&t=f&url={$group['logo']|get_photo_url}">
              </a>
            </div>
            <div style="margin-left:75px">
              <h3><span class="right cGray2 f12px fn">创建时间：{$group['ctime']|friendlyDate=###,'ymd'}</span><a href="{:U('group/Group/index', array('gid'=>$group['id']))}"> {$group['name']}</a></h3> <p><span class="mr10">成员：{$group['membercount']}</span></p>
              <p>标签：{$group['tags']}</p>
              <p>简介：{$group['intro']}</p>
            </div>
            <div class="c"></div>
          </li>
          </volist>
        </ul>
       	<div class="page">{$group_list['html']}</div>
        <div class="c"></div>
        </div>
      </div>
    </div>
    <!-- 内容 end --> 
  </div>
</div>
</div>
<!-- 内容 end --> 
<include file="__THEME__/footer" /> 